$fontSize_20: 1.1vw;
$fontSize_18: 1vw;
$fontSize_16: 0.9vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.2vw;
$fontSize_36: 1.8vw;
$width: 82.292vw;

.header {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: 100%;
  transition: all 600ms;
  background-color: white;

  .box {
    width: $width;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .logo{
      img{
        transition: all 600ms;
      }
    }
    .links {
      width: 70%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .item {
        .a1 {
          color: #666;
          font-size: $fontSize_18;
          display: flex;
          align-items: center;
          flex-direction: column;
          justify-content: center;
          position: relative;
          padding: 2vw 0;
          transition: all 600ms;
          &::after{
            content:'';
            display: block;
            position: absolute;
            left: 50%;
            bottom:0;
            transform: translateX(-50%);
            width: 0;
            background-color: rgba(225, 27, 0, 1);
            height: 3px;
            transition: all 600ms;
          }
          .c-hover__text-replace__inner {
            position: relative;
            display: block;
            z-index: 5;
          }

          .c-hover__text-replace__child {
            transition: visibility .3s, opacity .3s, transform .3s;
            display: block;
          }

          .c-hover__text-replace__child.-default {
            visibility: visible;
            opacity: 1;
            transform: translate3d(0, 0, 0);
          }

          .c-hover__text-replace__child.-hover {
            position: absolute;
            left: 0;
            top: 0;
            visibility: hidden;
            opacity: 0;
            transform: translate3d(0, 50%, 0);
            color: #000;
          }

          &:hover {
            .c-hover__text-replace__child.-default {
              visibility: hidden;
              opacity: 0;
              transform: translate3d(0, -50%, 0);
            }

            .c-hover__text-replace__child.-hover {
              visibility: visible;
              opacity: 1;
              transform: translate3d(0, 0, 0);
            }
            &::after{
              width: 100%;
            }
          }
        }

        .active {
          .c-hover__text-replace__child.-default {
            visibility: hidden;
            opacity: 0;
            transform: translate3d(0, -50%, 0);
          }

          .c-hover__text-replace__child.-hover {
            visibility: visible;
            opacity: 1;
            transform: translate3d(0, 0, 0);
          }
          &::after{
            width: 100%;
          }
        }
      }

      .lan {
        a {
          display: flex;
          align-items: center;

          p {
            color: #666;
            font-size: $fontSize_18;
          }

          svg {
            margin-left: 10px;
          }
        }
      }
      .search{
        img{
          width: 1.5vw;
        }
      }
    }
  }
}

.hasBg {
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
  .box {
    .logo {
      img {
        transform: scale(.8);
      }
    }

    .links {
      .item {
        .a1 {
          padding: 1vw 0;
        }
      }
    }
  }
}


.pheader {
  display: none;
  position: fixed;
  top: 0;
  height: 60px;
  width: 100%;
  left: 0;
  z-index: 1002;
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, .1);

  .search {
    position: absolute;
    right: 80px;
    width: 140px;
    top: 50%;
    transform: translateY(-50%);

    input {
      width: 100%;
      padding: 10px 0;
      border: none;
      border-bottom: 1px solid #D9D9D9;
      width: 0;
      background: transparent;
      color: white;
      transition: all 600ms;
    }

    .move {
      width: 100%;
    }

    .icon {
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
    }
  }

  .menu {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background: #fff;

    a {
      margin-left: 20px;
      transform: translateY(2px);

      img {
        width: 140px;
        object-fit: contain;
      }
    }

    .navbox {
      margin-right: 20px;

      .line {
        width: 30px;
        height: 1px;
        background-color: #000;
        margin: 8px 0;
        -webkit-transition: all .6s;
        transition: all .6s;
      }
    }

    .activeBox {
      .line:nth-child(1) {
        transform: rotate(45deg) translateY(12px);
      }

      .line:nth-child(2) {
        transform: translateX(30px);
        opacity: 0;
      }

      .line:nth-child(3) {
        transform: rotate(-45deg) translateY(-12px);
      }
    }
  }
}

.menuList {
  position: fixed;
  left: 0;
  top: 59px;
  width: 100%;
  z-index: 1001;
  background: white;
  display: none;
  height: calc(100vh - 59px);

  .lan {
    padding: 1rem;
    display: flex;
    justify-content: flex-end;

    a {
      color: #646464;
      margin-left: 10px;
    }

    .active {
      font-weight: bolder;
      color: #000000;
    }
  }

  .item {
    //background: rgba(255,255,255,.8);
    padding: 1rem;
    background-color: #ededed;
    border-bottom: 1px solid #dadada;

    a {
      color: #000;
      display: block;
      position: relative;
      text-transform: uppercase;

      img {
        position: absolute;
        right: 0;
        width: 20px;
        transition: all 600ms;
        top: 5px;
      }

      .icon2 {
        position: static;
        width: auto;
        margin-right: 10px;
      }

      .rotate {
        transform: rotate(90deg);
      }
    }

    .tb {
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;

      a {
        width: 100%;
        display: block;
      }

      img {
        width: 40px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        transition: all 600ms;
      }

      .rotate {
        transform: translateY(-50%) rotate(90deg);
      }
    }

    .types_top {
      display: none;

      a {
        font-size: 14px;
        margin-top: 15px;
      }
    }
  }
}

.activeList {
  transform: translateY(0);
}

.foot {
  background-color: #F7F7F7;
  position: relative;

  .top {
    position: absolute;
    right: calc((100% - 82.292vw) / 2);
    top: -3vw;
    cursor: pointer;

    img {
      width: 3vw;
      height: 3vw;
    }
  }

  .dom1 {
    width: $width;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 4vw 0;

    .l {
      display: flex;

      .d1 {
        .p1 {
          color: #333;
          font-size: $fontSize_16;
          margin-bottom: 8px;
        }

        .icons {
          margin-top: 2vw;
        }
      }

      .d2 {
        margin-left: 2vw;

        a {
          display: flex;
          align-items: center;
          margin-bottom: 10px;

          p {
            color: #333;
            font-size: $fontSize_16;
            margin-left: 8px;
          }
        }
      }
    }

    .r {
      a {
        display: block;
        color: #333;
        font-size: $fontSize_16;
        margin-bottom: 5px;
        transition: all 600ms;

        &:hover {
          color: #C8161E;
        }
      }
    }
  }

  .dom2 {
    width: $width;
    margin: 0 auto;
    padding: 2vw 0;
    border-top: 1px solid rgba(112, 112, 112, .3);
    display: flex;
    justify-content: space-between;

    p,
    a {
      color: #9A9A9A;
      font-size: $fontSize_16;
    }

    .links {
      a {
        margin-left: 2vw;
        transition: all 600ms;

        &:hover {
          color: #C8161E;
        }
      }
    }
  }
}


@media screen and (max-width: 1440px) {
  .hasBg {
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    .box {
      .logo {
        img {
          transform: scale(.6);
        }
      }
  
      .links {
        .item {
          .a1 {
            padding: 1.2vw 0;
          }
        }
      }
    }
}
}

@media screen and (max-width: 1024px) {
  .header {
    display: none;
  }

  .pheader {
    display: flex;
  }

  .foot{
    .top{
      right: 5%;
      top:-50px;
      img{
        width: 50px;
        height: 50px;
      }
    }
    .dom1{
      width: 90%;
      .l{
        width: 100%;
        flex-direction: column;
        .d1{
          .p1{
            font-size: 14px;
          }
          .icons{
            margin: 20px 0;
          }
        }
        .d2{
          margin-left: 0;
          a{
            p{
              font-size: 14px;
            }
          }
        }
      }
      .r{
        display: none;
      }
    }
    .dom2{
      width: 90%;
      flex-direction: column;
      text-align: center;
      a,p{
        font-size: 14px;
      }
    }
  }
}